const Hook = require('./Hook.js')
const HookCodeFactory = require('./HookCodeFactory.js')

const factory = new HookCodeFactory()

class AsyncParallelHook extends Hook {
  constructor(args) {
    super(args)
  }

  compile(options) {  // {taps: [{}, {}], args: [name, age], type: type}
    factory.setup(this, options)
    return factory.create(options)
  }
}

module.exports = AsyncParallelHook